import request from '@/axios/index.ts';

interface loginInfo{
    user_name:string,
    user_password:string,
}
export const getUserPostList = (data:any)=>{
    return request({
        url:'/post/page',
        method:"post",
        data
    })
}


export const getPostDetail = (params:any)=>{
    return request({
        url:'/post/detail',
        method:"get",
        params
    })
}


export const handleLogin = (data:loginInfo)=>{
    return request({
        url:'/user/login',
        method:"post",
        data,
    })
}